Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve: convert NetworkMessage and Combat to shared_ptr #1627

Merged
merged 71 commits into from
Sep 23, 2023

Conversation

mehah
Copy link
Contributor

@mehah mehah commented Sep 22, 2023

Refactor NetworkMessage and Combat classes to use std::shared_ptr for improved memory management and code safety.
Enhance code quality by shifting to smart pointers, reducing the risk of memory leaks and making the code easier to manage.

@dudantas dudantas closed this Sep 23, 2023
@dudantas dudantas deleted the shared-ptr-classes branch September 23, 2023 01:25
@dudantas dudantas restored the shared-ptr-classes branch September 23, 2023 01:27
@dudantas dudantas reopened this Sep 23, 2023
@dudantas dudantas changed the title shared ptr classes improve: convert NetworkMessage to shared_ptr Sep 23, 2023
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@dudantas dudantas changed the title improve: convert NetworkMessage to shared_ptr improve: convert NetworkMessage and Combat to shared_ptr Sep 23, 2023
@dudantas dudantas merged commit 315a798 into main Sep 23, 2023
@mehah mehah deleted the shared-ptr-classes branch September 26, 2023 23:35
luan added a commit that referenced this pull request Sep 30, 2023
…ripted-weapon-and-moveevent

* upstream/main: (21 commits)
  improve: revision of codes in data/ (#1374)
  fix: questlog message (#1648)
  improve: ensure players are removed from zones on death (#1650)
  improve: zstream static (#1644)
  feat: adding training shield and exercise shields (#1607)
  feat: benchmark tools (#1649)
  improve: optimize house/kv saves (#1634)
  fix: wong prey race ids and trashholder items (#1643)
  fix: move store items only to house tile (#1642)
  fix: attr condition enums (subid foods and others) (#1641)
  docs: add TNT Cloud support (#1639)
  fix: house transfer owner only in startup (#1621)
  fix: transfer house item (#1633)
  fix: some getUserdataShared and transfer house (sell) (#1632)
  fix: ammotype sanguine crossbow (#1624)
  feat: update talkactions add_addons and add_mounts (#1612)
  feature: imbuements get slot items (#1628)
  fix: reward container add charges to the items on boss death (#1629)
  improve: convert NetworkMessage and Combat to shared_ptr (#1627)
  feat: config.lua option for enable/disable mount in protection zone (#1599)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants